﻿@using Ext.Net;
@using Ext.Net.MVC;
@using System.Configuration;
@{ var X = Html.X(); }

@X.ResourceManager().Theme((Theme)int.Parse(ConfigurationManager.AppSettings["theme"].ToString()))

@(X.Viewport()
      .Layout(LayoutType.Fit)
      .Border(false)
      .Items(
          X.Panel()
              .Layout(LayoutType.Fit)
              .Border(false)
              .BottomBar(
                  X.Toolbar()
                      .Layout(LayoutType.HBox)
                      .LayoutConfig(new HBoxLayoutConfig { Align = HBoxAlign.Middle, Pack = BoxPack.End })
                      .Items(
                          X.Button().Text("确定").Icon(Icon.Accept).OnClientClick("EditFunction"),
                          X.Button().Text("取消").Icon(Icon.Cancel).OnClientClick("CancelEditFunction")
                      )
              )
              .Items(
                  X.FormPanel()
                      .BodyStyle("background-color:transparent")
                      .Border(false)
                      .ID("EditPrivilegesForm")
                      .Padding(10)
                      .Layout(LayoutType.Table)
                      .LayoutConfig(new TableLayoutConfig { Columns = 1 })
                      .Items(
                          X.TextField().FieldLabel("用户").ID("txtPrivilegesUser").MarginSpec("10 0 0 0"),
                          X.TextField().FieldLabel("用户组").ID("txtPrivilegesGroup").MarginSpec("10 0 0 0"),
                          X.TextField().FieldLabel("功能说明(ID)").ID("txtPrivilegesFunc").MarginSpec("10 0 0 0")

                      )

              )
      ))

<script type="text/javascript">
    function EditFunction() {

    }

    function CancelAddFunction() {

    }
</script>